# -*- coding: utf-8 -*-
# @Time    : 2024/10/29 15:00
# @Author  : CHNJX
# @File    : run.py
# @Desc    : 启动入口

# run.py
#
# from app import create_app
# from flask_cors import CORS
#
#
# if __name__ == '__main__':
#     app = create_app('development')  # 明确指定使用开发环境配置
#     CORS(app, resources={r"/*": {"origins": "http://localhost:8080"}}, supports_credentials=True)
#     app.run(host='0.0.0.0', port=5000, debug=True)

from app import create_app

if __name__ == '__main__':
    app = create_app('development')
    app.run(host='0.0.0.0', port=5000, debug=True)